package com.carkeeper.system.service.impl;

import com.carkeeper.common.utils.Result;
import com.carkeeper.common.utils.StatusCode;
import com.carkeeper.system.dao.MenuDao;
import com.carkeeper.system.pojo.Menu;
import com.carkeeper.system.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 周志雄
 * @version 1.0
 * @date 2020/11/25 19:26
 */
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuDao menuDao;

    @Override
    public Result findAll() {
        List<Menu> menus = menuDao.selectAll();

        return new Result(true, StatusCode.OK,"",menus);
    }
}
